<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Department</title>
</head>
<body>
	<a href="${pageContext.request.contextPath}/index.jsp">返回</a>
	<p>添加部门</p>
	<form action="${pageContext.request.contextPath}/DepartmentServlet"
		method="post">
		<table border="1">
			<tr>
				<td>名称*</td>
				<td><input name="d_name" type="text" required="required" /></td>
			</tr>
			<tr>
				<td>类型*</td>
				<td>
				<select name="d_type" required="required">
						<option value="1">部门</option>
						<option value="2">公司</option>
				</select>
				</td>
			</tr>
			<tr>
				<td>电话*</td>
				<td><input name="d_phone" type="text" required="required" /></td>
			</tr>
			<tr>
				<td>传真</td>
				<td><input name="d_email" type="text" /></td>
			</tr>
			<tr>
				<td>描述</td>
				<td><input name="d_describe" type="text" /></td>
			</tr>
			<tr>
				<td>上级部门</td>
				<td><input name="d_superiorId" type="number" /></td>
			</tr>
			<tr>
				<td>成立日期*</td>
				<td><input name="d_startDate" type="date" required="required" /></td>
			</tr>

			<tr>
				<td></td>
				<td><input type="submit"></td>
			</tr>
		</table>

		<input name="method" type="hidden" value="add" /> <input name="id"
			type="hidden" value="0" />
	</form>

</body>
</html>